#simulate a dataset with continuous data
dataset <- matrix(runif(300 * 50, 1, 50), nrow = 300 )
#the target feature is the last column of the dataset as a vector
target <- dataset[, 50]
dataset <- dataset[, -50]
ridge.plot(target, dataset)
Run the code above in your browser using DataLab